package com.brzjomo.secretiveworld.init;

import com.brzjomo.secretiveworld.SecretiveWorld;
import com.brzjomo.secretiveworld.inventory.container.CorpseOfAnUnknownTravelerContainer;
import com.brzjomo.secretiveworld.inventory.container.CrateContainer;
import com.brzjomo.secretiveworld.inventory.container.GreedyChestContainer;

import net.minecraft.inventory.container.ContainerType;
import net.minecraftforge.common.extensions.IForgeContainerType;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class ModContainerTypes {

	@SuppressWarnings("deprecation")
	public static final DeferredRegister<ContainerType<?>> CONTAINER_TYPES = new DeferredRegister<>(
			ForgeRegistries.CONTAINERS, SecretiveWorld.MODID);

	public static final RegistryObject<ContainerType<GreedyChestContainer>> GREEDY_CHEST = CONTAINER_TYPES
			.register("greedy_chest", () -> IForgeContainerType.create(GreedyChestContainer::new));

	public static final RegistryObject<ContainerType<CrateContainer>> CRATE = CONTAINER_TYPES.register("crate",
			() -> IForgeContainerType.create(CrateContainer::new));

	public static final RegistryObject<ContainerType<CorpseOfAnUnknownTravelerContainer>> CORPSE_OF_AN_UNKNOWN_TRAVELER = CONTAINER_TYPES
			.register("corpse_of_an_unknown_traveler",
					() -> IForgeContainerType.create(CorpseOfAnUnknownTravelerContainer::new));

}
